let name = 'tom'

export function fn() {
  console.log(name)
}

/* 
编译后的伪代码
() => {
  let name = 'tom'

  function fn() {
    console.log(name)
  }

  return {
    fn
  }
}
*/